package chapter01.principle.crp;

//错误示例：继承导致不合理行为
class Bird {
    public void fly() { /* 飞行逻辑 */ }
}

class Penguin extends Bird { 
    public void fly() {
        throw new UnsupportedOperationException("企鹅不会飞！");
    }
}
